function renderDataTable(id){

	if(document.getElementsByTagName){  
		 var table = document.getElementById(id);  
	     var tables = document.getElementsByName("datatable"); 
	     for(var t = 0; t < tables.length; t++){
		   	 var rows = tables[t].getElementsByTagName("tr");//一个表格的tr
		   	 for(i = 0; i < rows.length; i++){          
		   		  var head = rows[i].getElementsByTagName("th");
		   		  for(var h = 0; h < head.length; h++){
		   			  head[h].className = "evenrowcolor";//设置head样式
		   		  }
		   		  var clo = rows[i].getElementsByTagName("td");
		   		  for(var j = 0; j < clo.length; j++){
		   			  if(j % 2 == 0){
		   				  clo[j].className = "evenrowcolor";
		             }else{
		              	  clo[j].className = "oddrowcolor";
		             }     
		   		  }
		     }
	     }
	
	}

}